#include <iostream>

#include "World.h"

using namespace wok2;

int main (int argc, char * const argv[]) {
	if(argc==2) {
		srand(time(NULL));
		World world;
		std::ifstream ifs(argv[1]);
		world.read_world(ifs);
		ifs.close();
		
		world.runWorldParser();
	} else {
		std::cout << "You need to supply a world!" << std::endl
		<< "Example usage: lab3 test.world" << std::endl;
	}

    return 0;
}
